﻿<%@ Page Language="C#" MasterPageFile="~/cms.master" AutoEventWireup="true" CodeFile="Views.aspx.cs"
    Inherits="cms_Views" Title="<%$Resources:Language,CmsViewsTitle %>" %>

<%@ Register Src="~/controls/ctrlWait.ascx" TagName="ctrlWait" TagPrefix="ctrl" %>
<%@ Register Src="~/controls/ctrlShowInfo.ascx" TagName="ctrlShowInfo" TagPrefix="ctrl" %>
<%@ Register Src="~/controls/ctrlProductCompareManager.ascx" TagName="ctrlProductCompareManager"
    TagPrefix="uc2" %>
<%@ Register Src="~/controls/ctrlRates.ascx" TagName="ctrlRates" TagPrefix="uc1" %>
<%@ Register Assembly="Winthusiasm.HtmlEditor" Namespace="Winthusiasm.HtmlEditor"
    TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">

    <script language="javascript" type="text/javascript" src="../Javascript/Common.js"></script>

    <script type="text/javascript" src="../Javascript/jquery.js"></script>

    <script type="text/javascript" src="../Javascript/Scheme.js"></script>
    <script type="text/javascript">
        function hideHelp() {
            var divHelp = $('#divNotificationHelp')[0];
            divHelp.style.display = "none"; 
            ScrollTop();
        }
    </script>
    <h2>
        <%=Resources.Language.Views%></h2>
    <ctrl:ctrlWait ID="ctrlWait" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <ctrl:ctrlShowInfo ID="CtrlShowInfo" runat="server" />
            <div class="vSeparate">
                <span class="peBoxLeft"></span><span class="peBoxRight">
                    <asp:Button ID="btnNewTop" runat="server" Text="<%$Resources:Language,New %>" OnClick="New_Click"
                        CausesValidation="false" OnClientClick="hideHelp();"/>
                    <asp:Button ID="btnSaveTop" runat="server" Text="<%$REsources:Language,Save %>" OnClick="Save_Click" OnClientClick="hideHelp();"/>
                    <asp:Button ID="btnDeleteTop" runat="server" Text="<%$REsources:Language,DeleteUpper %>"
                        OnClick="Delete_Click" CausesValidation="false" Enabled="false" OnClientClick="hideHelp();"/>
                    <asp:Button ID="btnTestNotificationTop" runat="server" OnClick="btnTestNotification_Click"
                        Text="<%$Resources:Language,TestView %>" CausesValidation="false" OnClientClick="hideHelp();" />
                   <%--  <input id="btnNotificationHelpTop" type="button" value='<%=Resources.Language.TagList %>'
                        onclick="ShowHelp(this)" />--%>
                        <asp:Button runat="server" ID="btnNotificationHelpTop" Text="<%$Resources:Language,TagList %>" OnClientClick="ShowHelp(this);return false;" UseSubmitBehavior="false" />
                </span>
            </div>
            <asp:Panel ID="pnlView" runat="server" Visible="true" CssClass="vSeparate">
            </asp:Panel>
            <div class="vSeparate">
                <span class="peBoxLeft">
                    <%=Resources.Language.Views%>: </span><span class="peBoxRight">
                        <asp:DropDownList ID="ddlViews" runat="server" DataTextField="Title" CssClass="DropDownWide"
                            DataValueField="ViewID" AppendDataBoundItems="true" AutoPostBack="true" OnSelectedIndexChanged="ddlNews_SelectedIndexChanged">
                        </asp:DropDownList>
                    </span>
            </div>
            <div class="vSeparate">
                <span class="peBoxLeft">
                    <%=Resources.Language.Lang %>: </span><span class="peBoxRight">
                        <asp:DropDownList ID="ddlLanguage" runat="server" DataTextField="Name" DataValueField="LanguageID"
                            AutoPostBack="true" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged"
                            CssClass="DropDownShort">
                        </asp:DropDownList>
                    </span>
            </div>
            <div class="vSeparate">
                <span class="peBoxLeft">
                    <%=Resources.Language.Name %>: </span><span class="peBoxRight">
                        <asp:TextBox ID="tbTitle" runat="server" CssClass="TextInputWide"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="tbTitle"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </span>
            </div>
            <div class="vSeparate">
                <span class="peBoxLeft">
                    <%=Resources.Language.Content %>: </span><span class="peBoxRight">
                        <cc2:HtmlEditor ID="heContent" runat="server" Width="500px" Height="300px" ConvertDeprecatedSyntax="false"
                            OutputXHTML="false" />
                    </span>
            </div>
            <div class="vSeparate">
                <span class="peBoxLeft"></span><span class="peBoxRight">
                    <asp:Button ID="btnNewBottom" runat="server" Text="<%$REsources:Language,New %>"
                        OnClick="New_Click" CausesValidation="false" OnClientClick="hideHelp();" />
                    <asp:Button ID="btnSaveBottom" runat="server" Text="<%$REsources:Language,Save %>"
                        OnClick="Save_Click" OnClientClick="hideHelp();" />
                    <asp:Button ID="btnDeleteBottom" runat="server" Text="<%$REsources:Language,DeleteUpper %>"
                        OnClick="Delete_Click" CausesValidation="false" Enabled="false" OnClientClick="hideHelp();" />
                    <asp:Button ID="btnTestNotificationBottom" runat="server" OnClick="btnTestNotification_Click"
                        Text="<%$Resources:Language,TestView %>" CausesValidation="false" OnClientClick="hideHelp();" />
                 <%--    <input id="btnNotificationHelpBottom" type="button" value='<%=Resources.Language.TagList %>'
                        onclick="ShowHelp(this)" />--%>
                        <asp:Button runat="server" ID="btnNotificationHelpBottom" Text="<%$Resources:Language,TagList %>" OnClientClick="ShowHelp(this);return false;" UseSubmitBehavior="false" />                        
                </span>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <fieldset id="divNotificationHelp" style="display: none;">
        <legend>
            <%= Resources.Language.Tags %></legend>
        <p>
            <strong style="text-align: center;">
                <%=Resources.Language.ProductsList %></strong>
            <br />
            ##ItemTemplate# #ItemTemplate## -
            <%=Resources.Language.TableRow%>
            <br />
            ?#PriceNetto? -
            <%=Resources.Language.PriceNettoText%>
            <br />
            ?#PriceBrutto? -
            <%=Resources.Language.PriceBruttoText%>
            <br />
            ?#SpecialPriceBrutto? -
            <%=Resources.Language.SpecialPriceBrutto%>
            <br />
            ?#SpecialPriceNetto? -
            <%=Resources.Language.SpecialPriceNetto%>
            <br />
            ?#Name? -
            <%=Resources.Language.ProductName%>
            <br />
            ?#NameUrl? -
            <%=Resources.Language.ProductNameUrl%>
            <br />
            ?#ProductID? -
            <%=Resources.Language.ProductId%>
            <br />
            ?#AddToBasket? -
            <%=Resources.Language.AddToBasketLink%>
            <br />
            ?#ShortDescription? -
            <%=Resources.Language.ShortDescription%>
            <br />
            ?#ThumbSrc? -
            <%=Resources.Language.ThumbnalSource%>
            <br />
            ?#AddToCompare? -
            <%=Resources.Language.AddToCompareLink%>
            <br />
            ?#PromotedText? -
            <%=Resources.Language.PromotedText%>
            <br />
            ?#Rates? -
            <%=Resources.Language.Rates%>
            <br />
            ?#Product? -
            <%=Resources.Language.ProductText%>
            <br />
        </p>
    </fieldset>
</asp:Content>
